package com.lmxdawn.api.common.api;

import lombok.AccessLevel;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * redis key 枚举类
 * <p>
 *
 * @author jy
 * @since 2023-12-01 10:35
 */
@Getter
@AllArgsConstructor(access = AccessLevel.PRIVATE)
public enum RedisKeyEnum {

	RECOVER_LOCK("bp:sys:recover", "系统数据恢复锁"),
	LOGIN_SMS_CODE("bp:login:sms_code:%s", "登录短信验证码"),
	SMS_LIMIT("bp:login:sms_code:limit:", "短信发送限制"),
	USER_ADD_LOCK("bp:user:add:", "插入用户分布式锁"),
	TMPL_ADD_DEVICE_LOCK("bp:tmpl:save_device:", "模版下添加设备"),
	TMPL_SAVE_DEVICE_SETTING_LOCK("bp:tmpl:save_device_setting:", "保存设备配置"),
	;

	private String key;
	private String name;

}
